Optimal. Leaf size=46 \[ \frac{\log (\sin (e+f x))}{f (a+b)}+\frac{b \log \left (a \cos ^2(e+f x)+b\right )}{2 a f (a+b)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0803005, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {4138, 446, 72} \[ \frac{\log (\sin (e+f x))}{f (a+b)}+\frac{b \log \left (a \cos ^2(e+f x)+b\right )}{2 a f (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4138
Rule 446
Rule 72
Rubi steps
\begin{align*} \int \frac{\cot (e+f x)}{a+b \sec ^2(e+f x)} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{x^3}{\left (1-x^2\right ) \left (b+a x^2\right )} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{x}{(1-x) (b+a x)} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac{\operatorname{Subst}\left (\int \left (\frac{1}{(-a-b) (-1+x)}-\frac{b}{(a+b) (b+a x)}\right ) \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=\frac{b \log \left (b+a \cos ^2(e+f x)\right )}{2 a (a+b) f}+\frac{\log (\sin (e+f x))}{(a+b) f}\\ \end{align*}
Mathematica [A] time = 0.105223, size = 43, normalized size = 0.93 \[ \frac{b \log \left (-a \sin ^2(e+f x)+a+b\right )+2 a \log (\sin (e+f x))}{2 a^2 f+2 a b f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.078, size = 73, normalized size = 1.6 \begin{align*}{\frac{b\ln \left ( b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2} \right ) }{2\, \left ( a+b \right ) af}}+{\frac{\ln \left ( 1+\cos \left ( fx+e \right ) \right ) }{f \left ( 2\,a+2\,b \right ) }}+{\frac{\ln \left ( -1+\cos \left ( fx+e \right ) \right ) }{f \left ( 2\,a+2\,b \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.980614, size = 68, normalized size = 1.48 \begin{align*} \frac{\frac{b \log \left (a \sin \left (f x + e\right )^{2} - a - b\right )}{a^{2} + a b} + \frac{\log \left (\sin \left (f x + e\right )^{2}\right )}{a + b}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.663496, size = 107, normalized size = 2.33 \begin{align*} \frac{b \log \left (a \cos \left (f x + e\right )^{2} + b\right ) + 2 \, a \log \left (\frac{1}{2} \, \sin \left (f x + e\right )\right )}{2 \,{\left (a^{2} + a b\right )} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot{\left (e + f x \right )}}{a + b \sec ^{2}{\left (e + f x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.36048, size = 235, normalized size = 5.11 \begin{align*} \frac{\frac{b \log \left (a + b + \frac{2 \, a{\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} - \frac{2 \, b{\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac{a{\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{b{\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )}{a^{2} + a b} - \frac{2 \, \log \left (-\frac{\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} + 1\right )}{a} + \frac{\log \left (-\frac{\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1}\right )}{a + b}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]